package com.longrise.android.byjk.plugins.tabfirst.qrcode;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.TextView;

import com.longrise.android.byjk.R;
import com.longrise.common.base.BaseActivity;
import com.longrise.common.utils.AppUtil;

/**
 * Created by callxkj on 16/8/4.
 * 扫码登录成功
 */
public class QRloginsuccessActivity extends BaseActivity implements View.OnClickListener {

    private TextView mTvback;

    @Override
    public int getContentViewId(@Nullable Bundle savedInstanceState) {
        return R.layout.activity_qrloginsuccess;
    }


    @Override
    public void initView() {
        Toolbar mToolbar = (Toolbar) findViewById(R.id.byjk_toolbar);
        mToolbar.setNavigationIcon(null);
        mToolbar.setTitle(AppUtil.getString(R.string.qrlogin_title));
        mToolbar.setTitleMarginStart(AppUtil.dip2px(16));
        setSupportActionBar(mToolbar);
        mTvback = (TextView) findViewById(R.id.qrloginsuccess_bt);
        initData();
        initEvent();
    }

    private void initData() {

    }

    private void initEvent() {
        mTvback.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.qrloginsuccess_bt:
                finish();
                break;
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
    }
}
